<?php
/**
 * Created by PhpStorm.
 * User: xutao
 * Date: 2018/8/3
 * Time: 15:51
 */
namespace app\common\model;
use think\Model;

class BannerModel extends Model{
    protected $table = 'think_banner';
    protected $autoWriteTimestamp = 'datetime';
    public function getTypeAttr($value){
        $data = [
            1=>'首页',
            2=>'目的地',
            3=>'攻略'
        ];
        return $data[$value];
    }

}